import request from '@/utils/request';
 
export function getMistakes(userId) {
  return request({
    url: '/mistake/getMistakes',
    method: 'get',
    params: { userId }
  }).then(response => {
    console.log('API 响应:', response);
    return response;
  }).catch(error => {
    console.error('API 请求失败:', error);
    throw error;
  });
}